export default function parseTemplateString(string, variables) {
    if(!variables || !string) {
      return string;
    }
    const searchTerm = /<<([^>]*)>>/g; // "<<myVariable>>"
    return string.replace(searchTerm, (match, p1) => variables[p1] || '');
}
